/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.base.entity;


import org.hibernate.validator.constraints.Length;

import com.longview.io.modules.sys.entity.Area;
import com.longview.io.common.persistence.DataEntity;

/**
 * 站点基础信息表Entity
 * @author zf
 * @version 2017-09-18
 */
public class Station extends DataEntity<Station> {
	
	private static final long serialVersionUID = 1L;
	private String stationName;		// 站点名称
	private Area area;		// 区域
	private String stationCode;		// 站点编码
	private String lon;		// 纬度
	private String lat;		// 经度
	private String pinyin;		// 拼音
	private String shouzimu;		// 首字母
	private String isLocal;		// 是否内蒙古本地
	private String isCapital;		// 首府
	private String heCityid;		// he_cityid

	
	public Station() {
		super();
	}

	public Station(String id){
		super(id);
	}

	@Length(min=0, max=50, message="站点名称长度必须介于 0 和 50 之间")
	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}
	
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=50, message="站点编码长度必须介于 0 和 50 之间")
	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}
	
	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}
	
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}
	
	@Length(min=0, max=50, message="拼音长度必须介于 0 和 50 之间")
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}
	
	@Length(min=0, max=10, message="首字母长度必须介于 0 和 10 之间")
	public String getShouzimu() {
		return shouzimu;
	}

	public void setShouzimu(String shouzimu) {
		this.shouzimu = shouzimu;
	}
	
	@Length(min=0, max=11, message="是否内蒙古本地长度必须介于 0 和 11 之间")
	public String getIsLocal() {
		return isLocal;
	}

	public void setIsLocal(String isLocal) {
		this.isLocal = isLocal;
	}
	
	@Length(min=0, max=11, message="首府长度必须介于 0 和 11 之间")
	public String getIsCapital() {
		return isCapital;
	}

	public void setIsCapital(String isCapital) {
		this.isCapital = isCapital;
	}
	
	public String getHeCityid() {
		return heCityid;
	}

	public void setHeCityid(String heCityid) {
		this.heCityid = heCityid;
	}
	
}